package com.defect.service.basicsService;

import com.defect.bo.RoleBo;
import com.defect.po.Role;

import java.util.List;

public interface BRoleService {
    /**
     * 查询所有角色
     * @return
     * @throws Exception
     */
    public List<Role> selectRoleAll()throws Exception;

    /**
     * 修改角色
     * @param role
     * @throws Exception
     */
    public void updateRole(Role role)throws Exception;

    /**
     * 新增角色
     * @param role
     * @return
     * @throws Exception
     */
    public void insertRole(RoleBo role)throws Exception;

    /**
     * 根据ID删除角色
     * @param id
     * @throws Exception
     */
    public void deleteRole(String id)throws Exception;
}
